package com.aiti.lulian.enums;

import cn.hutool.core.util.ArrayUtil;
import lombok.AllArgsConstructor;
import lombok.Getter;

import java.util.Arrays;


@Getter
@AllArgsConstructor
public enum RankIncreaseTaskStrategyEnum  {

    REAL_NAME_AUTH("1", "完成实名认证"),
    READ_USER_MAUNAL("2", "阅读用户手册"),
    AVATAR_AND_BASE_INFO("3", "完善头像与基本信息"),
    COMPLETE_CONTACT("4", "完善联系方式"),
    COMPLETE_INDUSTRY("5", "完善所属行业"),
    COMPLETE_JOB_AUTH("6", "完成职业认证"),
    COMPLETE_BUSINESS_INTRODUCE("7", "完善业务介绍"),
    COMPLETE_COMPANY_INTRODUCE("8", "完善公司介绍"),
    COMPLETE_SELF_INTRODUCE("9", "完善个人介绍"),
    BECOME_VIP("10", "成为VIP付费会员"),
    COMPLETE_CARD_SEND_REQUEST("11", "发送名片交换请求"),
    COMPLETE_CARD_EXCHANGE("12", "同意名片交换请求"),



    ENTERPRISE_CARD_REAL_NAME_AUTH("20", "完成实名认证"),
    ENTERPRISE_CARD_AVATAR_AND_BASE_INFO("21", "完善基本信息"),
    ENTERPRISE_CARD_BECOME_VIP("22", "成为VIP付费会员"),
    ENTERPRISE_CARD_READ_USER_MAUNAL("23", "阅读用户手册"),
    ;



    /**
     * 类型
     */
    private final String type;
    /**
     * 描述
     */
    private final String description;

    public static RankIncreaseTaskStrategyEnum getValueOf(String type) {
        return ArrayUtil.firstMatch(o -> o.getType().equals(type), values());
    }



}
